<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" >
    <url> 
        <loc><?php echo Router::url('/en',true); ?></loc> 
		<xhtml:link rel="alternate" hreflang="en" href="<?php echo Router::url('/en',true); ?>" /> 
		<xhtml:link rel="alternate" hreflang="it" href="<?php echo Router::url('/it',true); ?>" />
        <changefreq>daily</changefreq> 
        <priority>1.0</priority> 
    </url> 
    <!-- bookmaker -->     
    <?php foreach($bookmakers as $bookmaker) { ?>
    <url> 
        <loc><?php echo Router::url('/en/bookmaker/',true).$bookmaker["Bookmaker"]["nome_slug"]; ?></loc>
		<xhtml:link rel="alternate" hreflang="en" href="<?php echo Router::url('/en/bookmaker/',true).$bookmaker["Bookmaker"]["nome_slug"]; ?>" /> 
		<xhtml:link rel="alternate" hreflang="it" href="<?php echo Router::url('/it/bookmaker/',true).$bookmaker["Bookmaker"]["nome_slug"]; ?>" />
        <lastmod><?php echo CakeTime::format(isset($bookmaker["Bookmaker"]["dt_ins"])?$bookmaker["Bookmaker"]["dt_ins"]:$bookmaker["Bookmaker"]["dt_mod"],"%Y-%m-%d"); ?></lastmod> 
        <priority>0.8</priority> 
    </url> 
    <?php } ?> 
</urlset>